<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>审核进度</title>
    <script src="../../js/jquery.js"></script>
    <script src="../../js/myAjax.js"></script>
</head>
<body style="margin: 0;padding: 0">
<div style="height: 100vh;">
    <div type="hidden" id="dailyId"></div>
    <div style="text-align:center;height:100vh ;width: 100vw; display: table-cell; vertical-align: middle;">
        <div style="display: flex;justify-content: center">
        <div style="color: green">已提交</div>
        <div>--></div>
        <div id="status"></div>
        </div>
        <div id="tip" style="text-align: center;margin-top: 20px;color: #c4c24e"></div>
    </div>
</div>
</body>
<script>
    query();
    function query() {
      let id = sessionStorage.getItem("dailyId");
      let result = myAjax('/d/daily/query','post',{id:id});
      console.log(result);
      if (result.code===200){
          if (result.data.status==null){
              $("#status").html('<span style="color: #1E9FFF">正在审核....</span>');
              $("#tip").html("预计审核还需要30分钟")
          }else if (result.data.status===1){
              $("#status").html('<span style="color: #369a5e">审核已通过</span>')
          }
      }else {
          $("#status").html('<span style="color: #c13c37">未查询到相关信息</span>');
      }
    }
</script>
</html>